package com.bls.service;

import com.bls.entity.HistoryRecord;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

/**
 * (HistoryRecord)表服务接口
 *
 * @author makejava
 * @since 2022-01-10 18:43:04
 */
public interface HistoryRecordService {


    /**
     * 保存分析剧本运行记录 HistoryRecord
     * @param historyRecord
     */
    void save(HistoryRecord historyRecord) throws Exception;

    // List<HistoryRecord> pageHistoryRecordList(Long analyseId);
    HistoryRecord getLastHistoryRecord(Long analyseId) throws Exception;

    /**
     * 分页条件查询分析剧本的运行历史记录列表
     * @param historyRecordQuery
     * @param pageSize
     * @param currentPage
     * @return
     */
    List<HistoryRecord> pageConditionHistoryRecordList(HistoryRecord historyRecordQuery, Integer pageSize, Integer currentPage) throws InvocationTargetException, IllegalAccessException, Exception;

    /**
     * 分页条件查询分析剧本的运行历史记录列表 总数
     * @param historyRecordQuery
     * @return
     */
    Integer pageConditionHistoryRecordTotal(HistoryRecord historyRecordQuery) throws InvocationTargetException, IllegalAccessException, Exception;

    int update(HistoryRecord historyRecord) throws Exception;
}